#! /bin/bash

for loop in 1 2 3 4 5
do 
  echo "The value is $loop";
done

int=1
while(( $int<=5 ))
do
  echo $int;
  let "int++";
done

int=1
until(( $int>5 ))
do
  echo $int;
  let "int++";
done

echo '输入1到4之间的数字：'
read aNum
case $aNum in
  1) echo '您选择了1';;
  2) echo '您选择了2';;
  3) echo '您选择了3';;
  4) echo '您选择了4';;
  *) echo '您的输入有误';;
esac 

